package com.zg.common.core;

/**
 * @author Zxb
 */
public class UserHolder {
    public static final ThreadLocal<User> currentUser = new ThreadLocal<>();
    public static void set(User u){
        currentUser.set(u);
    }
    public static User get(){
        return currentUser.get();
    }
}
